package com.ls.smartcampus2.service;

import com.ls.smartcampus2.mapper.TreeHoleMapper;
import com.ls.smartcampus2.pojo.TreeHole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TreeHoleServiceImpl implements TreeHoleService {
    @Autowired
    private TreeHoleMapper treeHoleMapper;
    @Override
    public void addTreeHoleMsg(int msgId,String sid, String msgText) {
        treeHoleMapper.addTreeHoleMsg(msgId,sid,msgText);
    }

    @Override
    public void addTreeHoleImg(int msgId, String sid, String imgUrl) {
        treeHoleMapper.addTreeHoleImg(msgId,sid,imgUrl);
    }

    @Override
    public int queryMsgIdBySid(String sid) {
        return treeHoleMapper.queryMsgIdBySid(sid);
    }


}
